<%--                                                                       --%>
<%-- Copyright (c) 2001-2003 BroadVision, Inc.  All rights reserved.       --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries.                       --%>
<%--                                                                       --%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/bv-html.tld" prefix="bvhtml" %>

<script language="JavaScript">
<%--
function openwin(file) {
  var win = window.open(file , "NewWindow", 'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=450,height=338');
  win.focus();
}
--%>

function confirmDeleteDocument(theForm, url) {
  if ( confirm('<bean:message key="cs.confirm.delete.document"/>') ){
    theForm.action = url;
    theForm.submit();
  } else {
    return false;
  }
}

</script>

<!-- Zone 5 starts here.  -->
      
<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" 
       summary="content area">
  <tr>
    <td valign="top">
    
    <!--start microsite logo and name here-->
    <div class="pageTitle">
      <%@ include file="/cs/microsite/micrositeNaviInfo.jsp" %>
    </div> 
    <!--end microsite logo and name here-->

    <!--start page title area here-->
    <div class="pageSubtitle">
      <span class="left">
        <bean:define id="docViewName" name="documentView" property="name"/>      
	           <%String docName = docViewName.toString();%>
            <bean:message key="cs.view" arg0="<%=docName %>"/> 
      </span>
      
      <logic:notEqual name="documentView" property="isReadOnly" value="true">
        <span class="right">
          <html:form action="/cs/documentEdit.do">
          <bvhtml:hiddenList name="micrositeNaviInfoView" property="urlParams" scope="request"/>
            <logic:equal name="documentView" property="editor" value="true">
              <input type="submit" class="titleButton" name="editBtn"
                     value='<bean:message key="button.edit"/>'
                     titleKey="button.edit">
                   
              <input type="button" class="titleButton" name="deleteBtn"
                     value='<bean:message key="button.delete"/>'
                    titleKey="button.delete"
                    onclick="confirmDeleteDocument(this.form, '<html:rewrite page="/cs/documentDelete.do"/>')">
            </logic:equal>
          </html:form>
        </span>
      </logic:notEqual>
    </div> 
    <!--end page title area here-->
    
    <div class="blockWrap">
 
    <!--start main content area here-->
    <table class="labelForm" width="100%" border="0" cellspacing="0" 
            cellpadding="0" summary="Document Information">
      <%-- name --%>
      <tr>
        <td width="20%" class="label">
          <bean:message key="cs.document.name"/>:<br>
        </td>
        <td width="80%" nowrap class="labelField">
          <bean:write name="documentView" property="name" />
        </td>
      </tr>
  
      <%-- description --%>
      <tr>
        <td width="20%" class="label">
          <bean:message key="cs.description"/>:
        </td>
        <td width="80%" nowrap class="labelField">
          <bean:write name="documentView" property="description" /> 
        </td>
      </tr>
      
      <%-- phase name (if phaseFlag is true) --%>
      <logic:equal name="documentView" property="phaseFlag" value="true">
      <tr> 
        <td nowrap width="20%" class="label">
          <bean:message key="cs.phase"/>:
        </td>
        <td width="80%" nowrap class="labelField">
          <bean:write name="documentView" property="phaseName"/>
        </td>
      </tr>
      </logic:equal>

      <%-- Owner name --%>
      <tr>
        <td width="20%" class="label">
          <bean:message key="cs.owner"/>:
        </td>
        <td width="80%" nowrap class="labelField">
          <bean:write name="documentView" property="ownerName" /> 
        </td>
      </tr>
    </table>
    <!-- Attachment list begins. -->
    <bean:define id="beanUsed" name="documentView" toScope="request" />
    <%@ include file="/cs/microsite/attachment/attachmentView.jsp" %>
    <!-- Attachment list ends. -->
    
    </div>
    <!--end main content area here-->
    </td>
  </tr>
</table>               
<!--end zone 5 content here -->
